﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class GameSetting : MonoBehaviour
{
    public const string ClientPasswordKey = "j6=9=1ac";
    private static GameSetting setting;
    public bool IsGripper;
    public bool Insurance;
    public bool VIP;
    public bool CanNotOnLooking;
    public int TimeCost;
    public int EveryHand;
    public int EveryTimes;
    public int VipType;

    static GameSetting()
    {
        setting = FindObjectOfType(typeof(GameSetting)) as GameSetting;
        if (setting == null)
        {
            GameObject obj2 = new GameObject("GameSetting");
            setting = obj2.AddComponent(typeof(GameSetting)) as GameSetting;
        }
        if (setting == null) return;

        setting.MobileType = 1;
        setting.DeviceID = SystemInfo.deviceUniqueIdentifier+"4";//"00-E1-4C-36-F5-C4";//更换会重新注册账号
        setting.ScreenX = 860;
        setting.ScreenY = 460;
        setting.RetailID = "0000";
        setting.GameID = 10;
        setting.ServerID = 1;
        setting.ClientAppVersion = "1.0";
    }
	public LimitedQueue<KeyValuePair<int, int>> SavedTableBetRecordsTableLogicId = new LimitedQueue<KeyValuePair<int,int>>(4);
    public string SharedNumber;
    public static GameSetting Instance { get { return setting; } }
    public string RoomName { set; get; }
    public int CurrentTotalCoin { set; get; }
    public int SmallBlindMin { set; get; }
    public int SmallBlindMax { set; get; }
    public int TimeMin { set; get; }
    public int TimeMax { set; get; }
    public int MinCoinCost { set; get; }
    public int GripperCost { set; get; }
    public int InsuranceCost { set; get; }
    public int CanNotOnLookingCost { set; get; }
    public int BlindCost { set; get; }
    public int JettonMin { set; get; }
    public int JettonMax { set; get; }
    public string Pid { get; set; }

    public string Password { get; set; }

    public int MobileType { get; set; }
    public string DeviceID { get; set; }
    public int ScreenX { get; set; }
    public int ScreenY { get; set; }
    public string RetailID { get; set; }
    public int GameID { get; set; }
    public int ServerID { get; set; }
    public string ClientAppVersion { get; set; }

    public string RoleName { get; set; }

	/// <summary>
	/// 手机号
	/// </summary>
	public string PhoneNum { get; set; }
	/// <summary>
	/// 自定义密码
	/// </summary>
	public string Pwd { get; set; }

    public override string ToString()
    {
        return string.Format("DeviceID:{0}", this.DeviceID);
    }
}
